import axios from "axios";

// 创建一个axios实例
const ins = axios.create();
// 拦截器
ins.interceptors.response.use((resp) => {
    if (resp.data.code == '403' && resp.data.data == null) {
        window.location.href='/invalidation';
        return;
    }
    return resp.data.data;
});
export default ins;